package org.app.Service.Impl;

import jakarta.annotation.Resource;
import org.app.Mapper.Auth.IPermissionMapper;
import org.app.Mapper.Auth.IRoleMapper;
import org.app.Service.IAuthService;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class AuthService implements IAuthService {
    @Resource
    private IRoleMapper roleMapper;
    @Resource
    private IPermissionMapper permissionMapper;
    @Override
    public Set<String> getUserRoles(String c_id, String group_id){
        return roleMapper.getUserRoles(c_id,group_id);
    }
    @Override
    public Set<String> getUserPermissions(String c_id){
        return permissionMapper.getUserPermissions(c_id);
    }
}
